﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace WarehouseWebAPP.Pages.user
{
    public partial class userMaster : System.Web.UI.MasterPage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Request.IsAuthenticated)
                Response.Redirect("/Pages/Auth/Login.aspx");
            FormsIdentity identity = HttpContext.Current.User.Identity as FormsIdentity;
            String username = identity.Name;
            
            bool userRole = HttpContext.Current.User.IsInRole("user");
            
        }

        protected void Menu2_MenuItemClick(object sender, MenuEventArgs e)
        {

        }
    }
}